package com.sbox.util;

import android.util.Log;

public class Logger {
	private static final String LOG_TAG="sbox";
	
	public static void info(String msg)
	{
		String strMsg = null;
		
		StackTraceElement[] stacks = Thread.currentThread().getStackTrace();
		strMsg = msg + ", file=" + stacks[4].getFileName();
		Log.i(LOG_TAG, strMsg);
	}
	
	public static void error(String msg)
	{
		String strMsg = null;
		
		StackTraceElement[] stacks = Thread.currentThread().getStackTrace();
		strMsg = msg + ", file=" + stacks[4].getFileName();
		Log.e(LOG_TAG, strMsg);
	}
	
	
}
